package com.jlkf.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jlkf.service.WithDrawService;
import com.platform.server.response.response.pojo.ReturnData;

@Controller
@RequestMapping("withDraw")
public class WithDrawController {
	@Autowired
	private WithDrawService withDrawService;
	
	/**
     *  提现申请
     */
    @RequestMapping(value="insertWithDraw",method=RequestMethod.POST)
    @ResponseBody
    public ReturnData insertWithDraw(@RequestBody String json){
    	return withDrawService.insertWithDraw(json);
    }
    
    /**
     *  提现详情
     */
    @RequestMapping("getWithDrawDetail")
    @ResponseBody
    public ReturnData getWithDrawDetail(Long id){
    	return withDrawService.getWithDrawDetail(id);
    }
    
    /**
	 * 最新提现记录
	 */
    @RequestMapping("getWithDrawInfo")
    @ResponseBody
    public ReturnData getWithDrawInfo(Long userId){
    	return withDrawService.getWithDrawInfo(userId);
    }
}
